/**
 * 通用css样式布局处理
 * Copyright (c) 2019 ruoyi
 */

/** 基础通用 **/
.pt5 {
	padding-top: 5px;
}
.pt10 {
	padding-top: 10px;
}
.pr5 {
	padding-right: 5px;
}
.pr40 {
	padding-right: 40px;
}
.pb5 {
	padding-bottom: 5px;
}
.mt4 {
	margin-top: 4px;
}
.mt5 {
	margin-top: 5px;
}
.mr5 {
	margin-right: 5px;
}
.mb5 {
	margin-bottom: 5px;
}
.mb8 {
	margin-bottom: 8px;
}
.ml5 {
	margin-left: 5px;
}
.mt10 {
	margin-top: 10px;
}
.mr10 {
	margin-right: 10px;
}
.mb10 {
	margin-bottom: 10px;
}
.ml10 {
	margin-left: 10px;
}
.mt16 {
	margin-top: 16px;
}
.mt20 {
	margin-top: 20px;
}
.mr20 {
	margin-right: 20px;
}
.mr26 {
	margin-right: 26px;
}
.mb20 {
	margin-bottom: 20px;
}
.ml20 {
	margin-left: 20px;
}
.w100 {
	width: 100%;
}
.whiteBack {
	background-color: #fff;
}

.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: inherit;
	font-weight: 500;
	line-height: 1.1;
	color: inherit;
}

.el-form .el-form-item__label {
	font-weight: 700;
	color: #000;
}
.el-dialog:not(.is-fullscreen) {
	margin-top: 6vh !important;
}

.el-dialog.scrollbar .el-dialog__body {
	overflow: auto;
	overflow-x: hidden;
	max-height: 70vh;
	padding: 10px 20px 0;
}

.el-table {
	color: #262426 !important;
	.el-table__header-wrapper,
	.el-table__fixed-header-wrapper {
		th {
			word-break: break-word;
			background-color: #f8f8f9 !important;
			color: #262426;
			height: 40px !important;
			font-size: 13px;
		}
	}
	.el-table__body-wrapper {
		.el-button [class*='el-icon-'] + span {
			margin-left: 1px;
		}
	}
}

/** 表单布局 **/
.form-header {
	font-size: 15px;
	color: #6379bb;
	border-bottom: 1px solid #ddd;
	margin: 8px 10px 25px 10px;
	padding-bottom: 5px;
}

/* tree border */
.tree-border {
	margin-top: 5px;
	border: 1px solid #e5e6e7;
	background: #ffffff none;
	border-radius: 4px;
	width: 100%;
}

@media (max-width: 768px) {
	.pagination-container .el-pagination > .el-pagination__jump {
		display: none !important;
	}
	.pagination-container .el-pagination > .el-pagination__sizes {
		display: none !important;
	}
}

.el-table .fixed-width .el-button--small {
	padding-left: 0;
	padding-right: 0;
	width: inherit;
}

/** 表格更多操作下拉样式 */
.el-table .el-dropdown-link {
	cursor: pointer;
	color: #409eff;
	margin-left: 10px;
}

.el-table .el-dropdown,
.el-icon-arrow-down {
	font-size: 12px;
}

.el-tree-node__content > .el-checkbox {
	margin-right: 8px;
}

.list-group-striped > .list-group-item {
	border-left: 0;
	border-right: 0;
	border-radius: 0;
	padding-left: 0;
	padding-right: 0;
}

.list-group {
	padding-left: 0px;
	list-style: none;
}

.list-group-item {
	border-bottom: 1px solid #e7eaec;
	border-top: 1px solid #e7eaec;
	margin-bottom: -1px;
	padding: 11px 0px;
	font-size: 13px;
}

.pull-right {
	float: right !important;
}

.el-card__header {
	padding: 14px 15px 7px !important;
	min-height: 40px;
}

.el-card__body {
	padding: 15px 20px 20px 20px !important;
}

.card-box {
	padding-right: 15px;
	padding-left: 15px;
	margin-bottom: 10px;
}

/* button color */
.el-button--cyan.is-active,
.el-button--cyan:active {
	background: #20b2aa;
	border-color: #20b2aa;
	color: #ffffff;
}

.el-button--cyan:focus,
.el-button--cyan:hover {
	background: #48d1cc;
	border-color: #48d1cc;
	color: #ffffff;
}

.el-button--cyan {
	background-color: #20b2aa;
	border-color: #20b2aa;
	color: #ffffff;
}

/* text color */
.text-navy {
	color: #1ab394;
}

.text-primary {
	color: inherit;
}

.text-success {
	color: #1c84c6;
}

.text-info {
	color: #23c6c8;
}

.text-warning {
	color: #f8ac59;
}

.text-danger {
	color: #ed5565;
}

.text-muted {
	color: #888888;
}

/* image */
.img-circle {
	border-radius: 50%;
}

.img-lg {
	width: 120px;
	height: 120px;
}

.avatar-upload-preview {
	position: absolute;
	top: 50%;
	transform: translate(50%, -50%);
	width: 200px;
	height: 200px;
	border-radius: 50%;
	box-shadow: 0 0 4px #ccc;
	overflow: hidden;
}

/* 拖拽列样式 */
.sortable-ghost {
	opacity: 0.8;
	color: #fff !important;
	background: #42b983 !important;
}

/* 表格右侧工具栏样式 */
.top-right-btn {
	margin-left: auto;
}

/*

**TODO:我添加的全局公共样式**

*/

label {
	font-weight: normal !important;
}
.text-red {
	color: #be1c1c;
}
.text-red:hover {
	color: #FF5F4C;
}
.cursor {
	cursor: pointer;
	
}
.cursor2 {
	cursor: pointer;
}

.w100 {
	width: 100% !important;
}
.w50 {
	width: 50% !important;
}

.w45p {
	width: 45px;
}
.w60p {
	width: 60px;
}
.w75p {
	width: 75px;
}
.w90p {
	width: 90px;
}

/* 单行文本溢出显示省略号, 必须是有宽度的块级元素 */
.ellipsis {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.submit-btn {
	background-color: #265bae !important;
	border: none !important;
}
.submit-btn:hover {
	background-color: #2b68c8 !important;
}
.psd {
	width: 18px !important;
	color: #fff !important;
}
/* 公共容器背景颜色 */
.comm-bg {
	background-color: #fff;
}
/* 公共字体 */
.comm-fs14 {
	font-size: 14px;
	color: #061326;
}
.comm-fs14b {
	font-size: 14px;
	font-weight: bold;
	color: #061326;
}
.comm-fs12 {
	font-size: 12px;
	color: #7d8592;
}
.blue-color {
	color: #265bae;
}
.blue-color:hover {
	color: #409EFF;
}
.red-color {
	color: #be1c1c;
}
.red-color:hover {
	color: #FF5F4C;
}
/* 首页-公共padding */
.home-comm-pd {
	padding: 10px 16px;
}

/* 公告标题 */
.comm-title {
	font-size: 14px;
	// font-weight: bold;
	color: #000;
	&::before {
		content: '';
		border-left: 3px solid #265bae;
		margin-right: 6px;
	}
}

/* tabs切换容器-公共样式 */
.comm-tabs-cntr {
	height: 40px;
	background-color: #fff;
	font-size: 14px;
	color: #000;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #dce1e8;
	.tabs {
		height: 100%;
		display: flex;
		.tab-pane {
			width: 90px;
			display: flex;
			justify-content: center;
			align-items: center;
			cursor: pointer;
			&.active {
				color: #3264b3;
				background-color: #dfe8f6;
				margin-bottom: -1px;
				border-bottom: 2px solid #1cbeb1;
			}
			&:hover {
				color: #3264b3;
			}
		}
	}
}

/* 搜索框容器-公共样式 */
.comm-search-cntr {
	background-color: #fff;
	.el-form {
		// 每一行
		.search-item {
			position: relative;
			display: flex;
			padding-top: 10px;
			&:last-child {
				padding-bottom: 10px;
			}
			// 每个搜索条件
			.el-form-item {
				width: 380px;
				margin-bottom: 0;
				display: flex;
				align-items: center;
				.el-select {
					width: 100%;
				}
				.el-form-item__label {
					font-size: 14px;
					font-weight: normal;
					color: #000;
					padding-left: 16px;
				}
				.el-form-item__content {
					.el-input__wrapper {
						background-color: #fff;
					}
					.el-input__inner {
						font-size: 14px;
						&::placeholder {
							color: #bac3d1;
							font-size: 14px;
						}
					}
				}
				// 拥有按钮的el-for-item
				&:has(.search-btn-box) {
					display: flex;
					width: fit-content;
					white-space: nowrap;
					margin-left: auto;
					padding-right: 15px;

					.el-button {
						margin-left: 15px;
					}
				}
			}
		}
	}
}
.common-search-container, .common-form-container {
	background-color: #fff;
	padding: 10px 10px 0;
	.el-row {
		.el-select, .el-date-editor {
			width: 100%;
		}
		
	}
	.el-form-item--default, .el-form-item {
		margin-bottom: 0;
	}
	.el-form-item__label {
		font-size: 14px;
		font-weight: normal;
		color: #000;
		padding-left: 16px;
	}
	.el-input__inner {
		font-size: 14px;
		&::placeholder {
			color: #bac3d1;
			font-size: 14px;
		}
	}
	.el-input__wrapper, .el-textarea__inner {
		background-color: #fff;
	}
	.el-textarea__inner {
		background-color: #f4f8fe;
	}
}
.common-search-container {
	.el-row {
		> :first-child, >:last-child, >:nth-child(4n+1) {
			margin-bottom: 10px;
		}
		>:last-child {
			> div {
				margin-left: auto;
				width: fit-content;
			}
		}
	}
}
/*物料直发详情表单样式*/ 
.common-form-container {
	.el-row {
		.el-cascader {
			width: 100%;
		}
		> :first-child, >:last-child, >:nth-child(3n+1) {
			margin-bottom: 20px;
		}
		.el-input, .el-input-number {
			width: 100%;
		}
	}
}

/* 订单列表容器-公共样式 */
.comm-order-cntr {
	font-size: 14px;
	$key-color: #7d8592;
	$value-color-blue: #265bae;
	$value-color-black: #000;
	// 每一个订单
	.order-item {
		margin-top: 20px;
		// 表头
		.head-box {
			height: 40px;
			background-color: #dfe8f6;
			padding: 0 20px;
			display: flex;
			align-items: center;
			justify-content: space-between;
			// icon图标默认颜色
			.icon {
				color: $key-color;
			}
			// key值
			.key {
				color: $key-color;
				margin-left: 10px;
			}
			// 冒号:
			.key::after {
				content: ':';
				margin: 0 4px;
				font-weight: bold;
			}
			// value值
			.value {
				color: $value-color-blue;
			}
			// 左侧: 订单编号-总金额-状态-已存在问题反馈
			.left {
				display: flex;
				.has-question {
					color: #be1c1c;
					cursor: pointer;
					&:hover {
						color: #FF5F4C;
					}
				}
			}
			// 右侧: 进度条-查看
			.right {
				display: flex;
			}
		}
		// 表体
		.body-box {
			background-color: #f4f8fe;
			height: 60px;
			padding: 20px;
			.key {
				color: $key-color;
			}
			.value {
				color: $value-color-black;
			}
			.item-box {
				margin-top: 15px;
				display: flex;
				.item {
					flex: 1;
					display: flex;
					align-items: center;
					// .key {}
					.value::before {
						content: ':';
						margin: 0 10px;
					}
					.value {
						flex: 1;
					}
				}
			}
			.item-box:first-child {
				margin-top: 0;
			}
		}
	}
}

/* 订单-订单状态容器-公共样式 */
.comm-state-cntr {
	width: 64px;
	height: 22px;
	border-radius: 11px;
	font-size: 12px;
	line-height: 22px;
	text-align: center;
	color: #7d8592;
	border: 1px solid #7d8592;
	// 待齐套
	&.dqt {
		background-color: #dcd3e0;
		color: #be1c1c;
		border-color: #be1c1c;
	}
	&.dwc {
		background-color: #dfdde0;
		color: #e07c22;
		border-color: #dfb087;
	}
	// 已完成
	&.ywc {
		background-color: #cde4e0;
		color: #48c43f;
		border-color: #3ec233;
	}
}
.fsz20 {
	font-size: 20px;
}

.pdlr-16 {
	padding: 0 16px;
}

.search-header {
	padding: 10px 10px;
	.el-form-item {
		margin-bottom: 0;
	}
	.el-input__wrapper {
		background-color: #f4f8fe;
	}
}

/* 下载hover时下划线 */
.download_cursor {
	cursor: pointer;
	&:hover {
		color: #409eff;
		// border-bottom: 1px solid #409eff;
	}
}

.el-scrollbar {
	background: #fff;
}

/* 通用空状态 */
.empty-cntr {
	.el-empty {
		padding: 0;
	}
	.el-empty__description {
		margin-top: 10px;
	}
}

/* 公共弹框样式 */
.comm-dialog {
	font-size: 14px;
	// 头
	.el-dialog__header {
		background: linear-gradient(90deg, #265bae, #4a7ece);
		color: #fff;
		width: 100%;
		margin-right: 0;
		padding: 10px;
		.title::before {
			content: '';
			display: inline-block;
			width: 6px;
			height: 6px;
			border-radius: 50%;
			background-color: #fff;
			margin-right: 10px;
		}
		.el-dialog__headerbtn {
			width: 30px;
			height: 30px;
			right: 10px;
			top: 10px;
			.el-dialog__close {
				&:hover {
					color: rgb(190, 28, 28);
				}
				color: #fff;
				font-size: 22px;
			}
		}
	}
	// 体
	.el-dialog__body {
		padding: 10px;
		background-color: #fff;
	}
}

/* 
el-dialog弹框居中;
el-dialog弹框外需要加一个元素包裹才生效
*/
.comm-dialog-center {
	.el-dialog {
		display: flex;
		flex-direction: column;
		margin: 0 !important;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		max-height: calc(100% - 30px);
		max-width: calc(100% - 30px);
	}
	.el-dialog .el-dialog__body {
		flex: 1;
		overflow: auto;
	}
}

.tablecomponents {
	margin: 0 16px;
}

// 创建时间字体正常
.el-label-normal {
	.el-form-item__label {
		font-weight: normal;
	}
}
/*通用表格样式*/
.common-table-container {
	thead .cell {
		display: flex;
		align-items: center;
		justify-content: center;
	}
	background-color: #fff;
	padding: 0 16px;
	.fontlink {
		color: #169bd5;
		background-color: transparent;
	}
	
	.fontlink:hover {
		color: rgb(41, 73, 142);
		background-color: transparent;
	}
	
	.table-title {
		height: 50px;
		line-height: 50px;
		vertical-align: middle;
		span {
			margin-left: 4px;
			vertical-align: middle;
		}
	}
	.table-btn {
		padding: 10px 0;
	}
	.table-title::before {
		content: '';
		width: 4px;
		height: 18px;
		background-color: #265bae;
		display: inline-block;
		vertical-align: middle;
		margin-right: 10px;
	}
	.operationBtn {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 0 0;
	}
	.common-table-box {
		color: #262426;
		thead th {
			background-color: #f9f8f9 !important; 
			color: #262426;
			font-size: 13px;
		}
	}
}
/*数字输入框默认居中，改成居左*/
.el-input-number .el-input__inner {
	text-align: left !important;
}
.el-descriptions__label {
	color: #000 !important;
}
.el-descriptions__content {
	color: #000 !important;
}
.el-input__inner {
	color: #000 !important;
}
.el-textarea__inner {
	color: #000 !important;
}
.el-input.is-disabled .el-input__inner {
	-webkit-text-fill-color: #686a6d !important
}
/* ---el-table滚动条公共样式--- */
.el-scrollbar {
  // 横向滚动条
  .el-scrollbar__bar.is-horizontal .el-scrollbar__thumb {
    opacity: 1; // 默认滚动条自带透明度
    height: 8px; // 横向滑块的宽度
    border-radius: 4px; // 圆角度数
    background-color: #bdbfc2; // 滑块背景色
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15); // 滑块阴影
  }
  // 纵向滚动条
  .el-scrollbar__bar.is-vertical .el-scrollbar__thumb {
    opacity: 1;
    width: 8px; // 纵向滑块的宽度
    border-radius: 4px;
		background-color: #bdbfc2; // 滑块背景色
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);
  }
}